package com.jack006.user.controller;

import com.jack006.grace.result.GraceJSONResult;
import com.jack006.api.controller.user.HelloControllerApi;
import com.jack006.utils.RedisOperator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname HelloController
 * @Description 接口实现类
 * @Date 2021-06-10 08:15
 * @Created by jack
 */
@RestController
public class HelloController implements HelloControllerApi {

    final static Logger logger = LoggerFactory.getLogger(HelloController.class);

    @Autowired
    private RedisOperator redisOperator;


    public Object hello(){
        return GraceJSONResult.ok("hello jack");
    }

//    @GetMapping("/redis")
//    public Object redis(){
//        redisOperator.set("website","jack006.com");
//        return GraceJSONResult.ok(redisOperator.get("website"));
//    }

}
